package org.pet.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.Column;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data public class PetScience {

    private Integer id;

    @NotEmpty
    private String title;// 文章标题

    @NotEmpty
    private String text;// 文章详情

    private String petVariety;//文章宠物种类标签

    private String petSubVariety;//文章宠物种类2级标签

    private Integer userId;// 发布者id

    private String userName;// 发布者

    private String pic;// 图片

    private Double score;// 评分

    private Integer clicks;//点击量

    private Integer state;//是否为草稿，0为否,1为是//弃用

    private Integer audit;// 审核状态

    private Integer auditId;// 审核者id

    private Integer auditName;// 审核者

    @JsonFormat(pattern="yyyy-MM-ddHH:mm:ss",timezone="GMT+8")
    private LocalDateTime auditTime;// 审核时间

    @JsonFormat(pattern="yyyy-MM-ddHH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;// 创建时间

    @JsonFormat(pattern="yyyy-MM-ddHH:mm:ss",timezone="GMT+8")
    private LocalDateTime modifyTime;// 修改时间

    @JsonFormat(pattern="yyyy-MM-ddHH:mm:ss",timezone="GMT+8")
    private LocalDateTime deleteTime;// 删除时间

    private Integer remove;// 删除状态
}
